<!DOCTYPE html>
<html>
<head>
<title>Daftar Produk</title>
<link href="View/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="View/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link  href="View/bootstrap/js/bootstrap.min.js" rel="stylesheet"/>
<script type="text/javascript" src="View/bootstrap/js/jquery-latest.js"></script>
</head>
<?php
include 'content/content_header_user.php';
?>
<body>
<?php
	$conn =mysql_connect("127.0.0.1","root","");
	$db = mysql_select_db("pronsweb",$conn);
	$sql = "select * from produk";
	$hasil = mysql_query($sql,$conn);
    $edit = mysql_query("SELECT * FROM produk WHERE ID_PRODUK='$_GET[id]'");
    $data = mysql_fetch_array($edit);
		echo "<h2 align=center>Edit Data Produk </h2>
          <form method=POST action=updateproduk.php>
			<table align=center border=0 cellpadding=10>
				<input type='hidden' name='ID_PRODUK' value='$data[ID_PRODUK]'>
					<tr><td>NAMA PRODUK         </td><td> : <input type='text' name='NAMAPRODUK' value='$data[NAMAPRODUK]'></td></tr>
					<tr><td>DESKRIPSI PRODUK    </td><td> : <input type='text' name='DESKRIPSIPRODUK' value='$data[DESKRIPSIPRODUK]'></td></tr>
					<tr><td>JUMLAH ITEM         </td><td> : <input type='text' name='KUANTITASPERUNIT' value='$data[KUANTITASPERUNIT]'></td></tr>
					<tr><td>HARGA               </td><td> : <input type='text' name='HARGAPERUNIT' value='$data[HARGAPERUNIT]'></td></tr>
					<tr><td>DISKON              </td><td> : <input type='text' name='DISKON' value='$data[DISKON]'></td></tr>
					<tr><td></td><td><a href='list_produk.php' class='btn btn-primary '>Batal</a>
					<button type='submit' class='btn btn-primary'>Update</button>
			</table></form></h2>";
?>
		  
		
          
         
		  

